import service from '@/utils/request'

// @Tags AddressInfo
// @Summary 创建AddressInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.AddressInfo true "创建AddressInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /addressInfo/createAddressInfo [post]
export const createAddressInfo = (data) => {
  return service({
    url: '/addressInfo/createAddressInfo',
    method: 'post',
    data
  })
}

// @Tags AddressInfo
// @Summary 删除AddressInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.AddressInfo true "删除AddressInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /addressInfo/deleteAddressInfo [delete]
export const deleteAddressInfo = (data) => {
  return service({
    url: '/addressInfo/deleteAddressInfo',
    method: 'delete',
    data
  })
}

// @Tags AddressInfo
// @Summary 删除AddressInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除AddressInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /addressInfo/deleteAddressInfo [delete]
export const deleteAddressInfoByIds = (data) => {
  return service({
    url: '/addressInfo/deleteAddressInfoByIds',
    method: 'delete',
    data
  })
}

// @Tags AddressInfo
// @Summary 更新AddressInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.AddressInfo true "更新AddressInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /addressInfo/updateAddressInfo [put]
export const updateAddressInfo = (data) => {
  return service({
    url: '/addressInfo/updateAddressInfo',
    method: 'put',
    data
  })
}

// @Tags AddressInfo
// @Summary 用id查询AddressInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.AddressInfo true "用id查询AddressInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /addressInfo/findAddressInfo [get]
export const findAddressInfo = (params) => {
  return service({
    url: '/addressInfo/findAddressInfo',
    method: 'get',
    params
  })
}

// @Tags AddressInfo
// @Summary 分页获取AddressInfo列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取AddressInfo列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /addressInfo/getAddressInfoList [get]
export const getAddressInfoList = (params) => {
  return service({
    url: '/addressInfo/getAddressInfoList',
    method: 'get',
    params
  })
}

// @Tags AddressInfo
// @Summary 导出UserInfo列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "导出UserInfo列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"导出成功"}"
// @Router /addressInfo/getUserInfoListAll [get]
export const getAddressInfoListAll = (params) => {
  return service({
    url: "/addressInfo/getAddressInfoListAll",
    method: "get",
    responseType: "blob",
    params,
  })
}

